package com.tierstall.client.service;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.tierstall.shared.SessionInvalidException;
import com.tierstall.shared.UserDTO;

@RemoteServiceRelativePath("sessionService")
public interface SessionService extends RemoteService {

	String loginRequest(String username, String password);

	boolean checkSession(String sessionId) throws SessionInvalidException;

	UserDTO getLoggedInUser(String sessionId) throws SessionInvalidException;
}
